{#include file="top.php"#}
<div class="body">
    <div class="main">
        <div class="search_box">
            <!--<form id='form1' name='form1' action="{#optimize_url('search', 'member')#}" method='get'>-->
            <span class="title">搜尋</span>
            <div class="box">
                <input type="text" id='find' name='find'  value="{#if empty($find)#}keyword{#else#}{#$find#}{#/if#}" onfocus="find_onfocus(this);" onblur="find_onblur(this);" onkeyup="lookup(this.value,2);"/>
            </div>
            <a href="javascript:void(0);" class="b" onclick="window.location.href='/search-event/'+$('#find').val()"><strong>搜尋</strong></a>
            <div id="autoSuggestionsList" style="width: 558px;"></div>
            <!--</form>-->
        </div>
        <div class="tab_b_box">
            <a href="{#optimize_url('search', 'product','find='|cat:$find)#}">產品</a>
            <a href="{#optimize_url('search', 'event','find='|cat:$find)#}" class="curr">活動事件</a>
            <a href="{#optimize_url('search', 'member','find='|cat:$find)#}">會員</a>
            <em class="line"></em>
            <span class="info">共有{#intval($data.pageinfo.total)#}個{#if $find#} “{#$find#}” {#/if#}活動搜尋結果</span>
        </div>
        <div class="result_box">
            {#foreach  from=$data.result item=v key=k#}
            <div class="areabox {#if $v.member_type==5#}pro{#else#}try{#/if#}">
                <h2 class="at">{#if $v.member_type==5#}尊業體驗團{#else#}試用專員{#/if#}</h2>
                <div class="lbox">
					<div class="imgbox"><p class="img_p"><a href="{#$v._button_url#}"><span><img src="{#$v._photo_url#}"></span></a></p></div>
                    <div class="ir {#if $v.event_type==1#}gf{#else#}act{#/if#}"><span><a href="{#$v._button_url#}">{#$v.cname#}</a></span></div>
                    <!--<div class="ir act"><span>活動</span></div>-->

                </div>
                <div class="rbox">
                    <div class="tbox">
                        <table width="100%" border="0" cellpadding="0">
                            <tr>
                                <td colspan="2" class="tt"><a class="tt" href="/search-event/{#trim($v.brand_str)#}">{#$v.brand_str#}</a></td>
                            </tr>
                            <tr>
                                <td colspan="2"><a href="{#$v._button_url#}">{#$v.title#}</a></td>
                            </tr>
                            <tr>
                            <table width="100%" border="0" cellpadding="0">
                                {#if !empty($v.event_date)#}
                                <tr class="sep">
                                    <td class="label"><span>：</span>日期</td>
                                    <td>{#date('Y年m月d日',strtotime($v.event_date))#}</td>
                                </tr>
                                {#/if#}
                                {#if !empty($v.event_time)#}
                                <tr class="sep">
                                    <td class="label"><span>：</span>時間</td>
                                    <td>{#$v.event_time#}</td>
                                </tr>
                                {#/if#}
                                {#if !empty($v.place)#}
                                <tr class="sep">
                                    <td class="label"><span>：</span>地點</td>
                                    <td>{#$v.place#}</td>
                                </tr>
                                {#/if#}
                                {#if !empty($v.intro)#}
                                <tr class="sep">
                                    <td class="label"><span>：</span>簡介</td>
                                    <td>{#nl2br($v.intro)#}</td>
                                </tr>
                                {#/if#}
                            </table>
                            </tr>
                        </table>
                    </div>
                    <div class="infobox">
                        {#if $v._S eq 1 || $v._S eq 2#}
                        <span class="numbox">
                            {#if !empty($v.quota)#}<sup>參加人數</sup><span class="num">{#$v.apply_num#}</span>{#/if#}
                        </span><a href="{#$v._button_url#}" class="btn {#$v._button_css#} ir"><span>{#$v._button_txt#}</span></a>
                        {#else#}
                        <span class="numbox">
                            <sup>名額</sup><span class="num">{#$v.quota#}</span>&nbsp;
                            <sup>申請人數</sup><span class="num">{#$v.apply_num#}</span>&nbsp;
                            <sup>人氣</sup><span class="num">{#$v.click#}</span>
                        </span><a href="{#$v._button_url#}" class="btn {#$v._button_css#} ir"><span>{#$v._button_txt#}</span></a>
                        {#/if#}

                        {#if $v._iscome eq 0#}
                        <div class="text_coming_info"><strong class="text_coming"></strong></div>
                        {#else if empty($v._difTime.0)#}
                        <div class="text_over_info"><strong class="text_over"></strong></div>
                        {#else#}
                        <div class="info rest_info"><span>尚餘</span><strong>{#$v._difTime.0#}</strong><sub>{#$dateArr[$v._difTime.1]#}</sub></div>
                        {#/if#}

                    </div>
                </div>
            </div>
            {#/foreach#}
        </div>
        {#$pagelist#}
    </div>
    <!-- main-->
    <div class="sidebar">

        {#show_block('b2',1,'','sidebar_ad')#}
        {#show_block('b1',2,'','sidebar_function')#}
        {#show_block('b4',0,'','sidebar_workshop')#}
        {#show_block('b11',0,'','sidebar_new_try sidebar_new b_box')#}
        {#show_block('b5',0,'','sidebar_top3 b_box')#}
        {#show_block('b6',0,'','sidebar_facebook')#}
    </div>
    <!-- sidebar -->

</div><!--body-->
{#include file="footer.php"#}